<!DOCTYPE html>
<html lang="en">
<head>
  <title>Document</title>
</head>
<body>
  <div id="app"></div>
  <script src="./mvvm/mvvm.js"></script>
  <script src="./mvvm/compile.js"></script>
  <script src="./mvvm/observer.js"></script>
  <script src="./mvvm/watcher.js"></script>
  <!-- <script src="./vue.js"></script> -->
  <script>
    const vm = new MVVM({
      el: '#app',
      data: {
        msg: 'hello'
      }
    })
    console.log(vm.msg, vm)
    // setter监视数据变化
    // getter读取数据
  </script>
</body>
</html>